package com.bestvike.stone.spring.eureka;

import org.springframework.boot.autoconfigure.condition.ConditionalOnClass;
import org.springframework.cloud.netflix.eureka.CloudEurekaClient;
import org.springframework.stereotype.Component;

/**
 * Created by 许崇雷 on 2018-01-29.
 */
@Component
@ConditionalOnClass(CloudEurekaClient.class)
public final class EurekaUtils {
    private static String appMsg;

    EurekaUtils(IEurekaProperties eurekaProperties) {
        appMsg = eurekaProperties.getAppMsg();
    }

    public static String getAppMsg() {
        return appMsg;
    }
}
